Skip to content

fix: apply post-merge review follow-up#104

Merged
GitAddRemote merged 3 commits intomainfrom
fix/ISSUE-55-review-followup
Apr 8, 2026
Merged

fix: apply post-merge review follow-up#104
GitAddRemote merged 3 commits intomainfrom
fix/ISSUE-55-review-followup

Conversation

@GitAddRemote
Copy link
Copy Markdown
Owner

  • enforce non-negative org inventory quantity filters in controller parsing

  • add regression coverage for negative minQuantity and maxQuantity inputs

  • stabilize fallback inline drafts so memoized inventory rows do not rerender unnecessarily

- enforce non-negative org inventory quantity filters in controller parsing

- add regression coverage for negative minQuantity and maxQuantity inputs

- stabilize fallback inline drafts so memoized inventory rows do not rerender unnecessarily
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Follow-up fixes to org inventory filtering validation and frontend inventory row rendering stability.

Changes:

  • Enforce minQuantity/maxQuantity query filters to be non-negative in the org-inventory controller.
  • Add regression tests asserting negative quantity filters return 400 BadRequest.
  • Stabilize inline draft fallback objects in the Inventory page to reduce unnecessary row re-renders.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
frontend/src/pages/Inventory.tsx Adds memoized fallback draft caching for inline edit rows and cleans up stale cache entries when items change.
backend/src/modules/org-inventory/org-inventory.controller.ts Applies min: 0 validation to min_quantity and max_quantity query parsing.
backend/src/modules/org-inventory/org-inventory.controller.spec.ts Adds tests ensuring negative quantity filters throw the expected BadRequestException.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Adds inline comment explaining why writing to inlineDraftFallbacks.current

during render is safe: the value is derived deterministically from item

data so concurrent/aborted renders are idempotent, and stale entries

are pruned by the existing [items] effect.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Resolves use-before-define ordering: useRef was declared after the

useEffect that references it.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GitAddRemote GitAddRemote merged commit 707677e into main Apr 8, 2026
15 checks passed
@GitAddRemote GitAddRemote deleted the fix/ISSUE-55-review-followup branch April 8, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants